package com.key.modules.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.key.modules.cache.MybatisCache;
import com.key.modules.entity.CustomerSt;
import com.key.modules.vo.CustomerReVO;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@CacheNamespace(implementation = MybatisCache.class,eviction=MybatisCache.class)
public interface CustomerStMapper extends BaseMapper<CustomerSt> {
    Page<CustomerReVO> selectCustomerRe(@Param("page") Page<CustomerReVO> page, @Param("customerName") String customerName, @Param("orderTime")String orderTime,
                                        @Param("waybillNo")String waybillNo, @Param("billingStatus") String billingStatus);
    int insertCustomerSt( @Param("statementNumber")String statementNumber,@Param("customerName")String customerName,@Param("billingTime")String billingTime,
                          @Param("billingStatus")Integer billingStatus,@Param("invoiceStatus")Integer invoiceStatus,@Param("amountReceivable")String amountReceivable,
                          @Param("abnormalState")Integer abnormalState,@Param("paybackDate")String paybackDate,@Param("creationTime")String creationTime);
}
